<?
$user = $vars['user'];
$userType = $user->isAdmin() ? 'Administrador' : 'Usuario regular';
// The icon is set as background-image for a div
$userIcon = $user->getIcon( "small" );

?>
<div class="user_img" style="background-image:url(<?=$userIcon?>)">
	<div class="login_bg">
		<?
		//Here we use the profile plugin that overrides the view icon
		//"override" so the view renders only the icon
		?>
		<div class="name"><?=$user->name?></div>
		<div class="prof"><?=$userType?> <a href="#" id="logoutButton">(Cerrar Sesión)</a></div>
	</div>
</div>